[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 strupr()                Convert String to Uppercase

 #include   <string.h>                   Required for declarations only

 char       *strupr(string);
 char       *string;                     String to be capitalized

    strupr() converts all lowercase letters in 'string' to uppercase.
    Other characters are not affected.

       Returns:     A pointer to the converted string.  There is no error
                    return.

   -------------------------------- Example ---------------------------------

    The following statements convert all lowercase letters to uppercase
    before printing the string.

           #include <string.h>
           #include <stdio.h>

           char *string = "convert this string to uppercase";
           char *strptr;

           main()
           {
                strptr = strupr(string);
                printf("%s",strptr);
           }


See Also: strlwr()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson